/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.Maestros.Vista;

import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.KeyListener;
import java.util.ArrayList;
import java.util.Date;
import pe.edu.pucp.Maestros.DAO.AeropuertoDAO;
import pe.edu.pucp.Modelo.Aeropuerto;
import pe.edu.pucp.Modelo.Ciudad;
import pe.edu.pucp.Modelo.Continente;
import pe.edu.pucp.Modelo.EstadoAeropuerto;
import pe.edu.pucp.Modelo.Pais;
import pe.edu.pucp.Util.ValHelper;

/**
 *
 * @author katy
 */
public class AeropuertoGUI extends javax.swing.JDialog {

    /**
     * Creates new form AeropuertoGUI
     */
   
    
    public AeropuertoGUI (java.awt.Frame parent, AeropuertoDAO m, boolean modal){
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(null);
        this.txtCostoAlmacenamiento.setTransferHandler(null);
        this.txtCostoLlegada.setTransferHandler(null);
        this.txtCapacidad.setTransferHandler(null);
        this.txtRetencion.setTransferHandler(null);
        this.txtDescripcion.setTransferHandler(null);
    }
    
   // Coloca valores de un aeropuerto existente para la edicion
    public void setValues(Aeropuerto a, ArrayList<Continente> lstContinente, ArrayList<Pais> lstPais, ArrayList<Ciudad> lstCiudad) {
        this.txtDescripcion.setText(a.getDescripcion());
        this.txtCapacidad.setText(String.valueOf(a.getCappack()));
        this.txtCostoAlmacenamiento.setText(String.valueOf(a.getCostpack()));
        this.txtCostoLlegada.setText(String.valueOf(a.getCostoaeropuerto()));
        this.dtcFechaRegistro.setDate(a.getFechareg());
        this.txtRetencion.setText(String.valueOf(a.getTretencion()));
        for (int i = 0; i < lstContinente.size(); i++){
            if (lstContinente.get(i).getIdcontinente()==a.getCiudad().getPais().getContinente().getIdcontinente())
                this.cmbContinente.setSelectedIndex(i);  
            }
           
        for (int i = 0; i < lstPais.size(); i++){
            if (lstPais.get(i).getIdpais()==a.getCiudad().getPais().getIdpais())
                    this.cmbPais.setSelectedIndex(i);  
            }            
        for (int i = 0; i < lstCiudad.size(); i++){
            if (lstCiudad.get(i).getIdciudad()==a.getCiudad().getIdciudad())
            this.cmbCiudad.setSelectedIndex(i);  
        }
       
    }
    
    // Coloca valores por defecto al crear un aeropuerto nuevo
    public void setDefaultValues() {
        this.cmbEstado.setEditable(false);
        this.cmbEstado.setEnabled(false);
        this.dtcFechaRegistro.setEnabled(false);
    }
    
    public void setEstadoGuardar( String titulo){        
        this.setTitle("SIGEPA - "+titulo);
    }  
    
    public String getDescripcion(){
        return txtDescripcion.getText();
    }
    
    public int getEstadoAeropuerto(){
        return cmbEstado.getSelectedIndex();
    }

    public int getPais() {
        return cmbPais.getSelectedIndex();
    }
    
    public int getContinente() {
        return cmbContinente.getSelectedIndex();
    }
    
    public int getCiudad(){
        return cmbCiudad.getSelectedIndex();
    }
    
    public Double getCostoAlmacenamiento(){
        if(!txtCostoAlmacenamiento.getText().isEmpty()){
            return Double.parseDouble(txtCostoAlmacenamiento.getText());
        }
        else {
            return Double.valueOf(0);
        }
    }

    public Double getCostoLlegada(){
        if(!txtCostoLlegada.getText().isEmpty()){
            return Double.parseDouble(txtCostoLlegada.getText());    
        }        
        else{
            return Double.valueOf(0);
        }
    }
    
    public Integer getCapacidadAlmacen(){
        if (!txtCapacidad.getText().isEmpty()){
            return Integer.parseInt(txtCapacidad.getText());
        }
        else {
            return 0;
        }
    }
    
    public Integer  getTiempoRetencion(){
        if (!txtRetencion.getText().isEmpty()){
            return (Integer.parseInt(txtRetencion.getText()));
        }            
        else {
            return 0;
        }
    }
    
     public void addCambiarContinente(ItemListener ml){
        this.cmbContinente.addItemListener(ml);
    }     
    
    public void addCambiarPais(ItemListener ml){
        this.cmbPais.addItemListener(ml);
    }  
    
    public void addSaveButtonListener(ActionListener ml)
    {
        this.btnGuardar.addActionListener(ml);
    }
    
    public void addCancelButtonListener(ActionListener listener)
    {
        this.btnCancelar.addActionListener(listener);
    }
    
    public void soloTextoListener(KeyListener l){
        this.txtDescripcion.addKeyListener(l);
    }
    
    public void addSoloNumerosListener(KeyListener l) {
        this.txtCapacidad.addKeyListener(l);
        this.txtRetencion.addKeyListener(l);
    }
    
    public void addSoloNumerosYPunto(KeyListener l) {
        this.txtCostoAlmacenamiento.addKeyListener(l);
        this.txtCostoLlegada.addKeyListener(l);
    
    }
    
    public void addCapacidadMaximaListener(KeyListener l) {
        this.txtCapacidad.addKeyListener(l);
    }
    
    public void addCostoAlmacenMaximoListener(KeyListener l) {
        this.txtCostoAlmacenamiento.addKeyListener(l);
    }
    
    public void addCostoLlegadaMaximoListener(KeyListener l) {
        this.txtCostoLlegada.addKeyListener(l);
    }
    
    public void addRetencionMaximoListener (KeyListener l) {
        this.txtRetencion.addKeyListener(l);
    }
    
    public void llenarComboContinente(ArrayList<Continente> lista){
        cmbCiudad.removeAllItems();
        if(lista!=null){
            for (Continente opc : lista){
                cmbContinente.addItem(opc.getDescripcion());
            }
        }
    }
     
    public void llenarComboPais(ArrayList<Pais> lista){
        cmbPais.removeAllItems();
        if(lista!=null){           
            for (Pais opc : lista){
                cmbPais.addItem(opc.getDescripcion());
            }
        }
    }    
    // Llenar elementos a combos
    public void llenaCiudades(ArrayList<Ciudad> lst){
        cmbCiudad.removeAllItems();
        if (lst != null)
        {
            for (int i=0; i<lst.size();i++)
            {
                Ciudad c = lst.get(i);
                 cmbCiudad.addItem(c.getDescripcion());
            }
        }
    }
    
    public void llenaEstadosEditables(ArrayList<EstadoAeropuerto> lista, Aeropuerto aeropuerto){
        int defaultIndex = 0;
        if (lista != null){
           for (int i = 0; i<lista.size();i++){
               EstadoAeropuerto e = lista.get(i);
               if(aeropuerto != null && e.getIdestado()== aeropuerto.getEstadoAeropuerto().getIdestado())
                   defaultIndex = i;
               else 
                   if (aeropuerto == null && e.getDescripcion().toUpperCase().equals("ACTIVO"))
                       defaultIndex = i;
               cmbEstado.addItem(e.getDescripcion());
           }
       }
       cmbEstado.setSelectedIndex(defaultIndex);
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        btnGuardar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        cmbCiudad = new javax.swing.JComboBox();
        txtCapacidad = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        txtCostoLlegada = new javax.swing.JTextField();
        txtCostoAlmacenamiento = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        cmbEstado = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        txtRetencion = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        cmbContinente = new javax.swing.JComboBox();
        cmbPais = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        dtcFechaRegistro = new com.toedter.calendar.JDateChooser();
        jLabel11 = new javax.swing.JLabel();
        txtDescripcion = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMaximumSize(new java.awt.Dimension(900, 400));
        setPreferredSize(new java.awt.Dimension(880, 300));

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos"));
        jPanel1.setMaximumSize(new java.awt.Dimension(790, 285));
        jPanel1.setPreferredSize(new java.awt.Dimension(790, 285));

        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Recurso/checkmark.png"))); // NOI18N

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Recurso/delete.png"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel1.setForeground(java.awt.Color.gray);
        jLabel1.setText("Continente:");

        jLabel2.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel2.setForeground(java.awt.Color.gray);
        jLabel2.setText("Capacidad: ");

        jLabel3.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel3.setForeground(java.awt.Color.gray);
        jLabel3.setText("Costo llegada : ");
        jLabel3.setToolTipText("dolares");

        jLabel4.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel4.setForeground(java.awt.Color.gray);
        jLabel4.setText("Costo almacenaje : ");
        jLabel4.setToolTipText("Dólares");

        jLabel5.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel5.setForeground(java.awt.Color.gray);
        jLabel5.setText("Estado:");

        cmbEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbEstadoActionPerformed(evt);
            }
        });

        jLabel6.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel6.setForeground(java.awt.Color.gray);
        jLabel6.setText("Retención : ");
        jLabel6.setToolTipText("minutos");

        jLabel7.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel7.setForeground(java.awt.Color.gray);
        jLabel7.setText("Registro :");
        jLabel7.setToolTipText("dd/mm/yyyy");

        jLabel9.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel9.setForeground(java.awt.Color.gray);
        jLabel9.setText("País:");

        jLabel10.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel10.setForeground(java.awt.Color.gray);
        jLabel10.setText("Ciudad: ");

        dtcFechaRegistro.setDate(new Date()
        );
        dtcFechaRegistro.setEnabled(false);

        jLabel11.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
        jLabel11.setForeground(java.awt.Color.gray);
        jLabel11.setText("Nombre: ");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addGap(100, 100, 100)
                        .addComponent(txtDescripcion))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addGap(83, 83, 83))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel1)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel10)
                                    .addComponent(jLabel4))
                                .addGap(27, 27, 27)))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cmbCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbPais, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbContinente, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtCostoLlegada, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCapacidad, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCostoAlmacenamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel3))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtRetencion, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dtcFechaRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(211, 211, 211))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel11)
                    .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnGuardar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnCancelar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel1)
                            .addComponent(jLabel5)
                            .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbContinente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel9)
                            .addComponent(cmbPais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(txtRetencion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel10)
                            .addComponent(cmbCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7)
                            .addComponent(dtcFechaRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(8, 8, 8)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(txtCapacidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(txtCostoAlmacenamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(txtCostoLlegada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                        .addContainerGap(43, Short.MAX_VALUE))))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 841, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cmbEstadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbEstadoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbEstadoActionPerformed
   
  
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JComboBox cmbCiudad;
    private javax.swing.JComboBox cmbContinente;
    private javax.swing.JComboBox cmbEstado;
    private javax.swing.JComboBox cmbPais;
    private com.toedter.calendar.JDateChooser dtcFechaRegistro;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField txtCapacidad;
    private javax.swing.JTextField txtCostoAlmacenamiento;
    private javax.swing.JTextField txtCostoLlegada;
    private javax.swing.JTextField txtDescripcion;
    private javax.swing.JTextField txtRetencion;
    // End of variables declaration//GEN-END:variables
}
